from fastapi import APIRouter, Depends

from forward.api.schema.card import  PlayerSchema, PlayerSchemaV1
from forward.api.service.card import CardService


card = APIRouter(prefix="/card")


@card.post("/activate")
async def activate_card(visitor: PlayerSchemaV1, card_service: CardService = Depends()):
    return await card_service.activate_card(visitor)


@card.post("/activate_api")
async def activate_api(player_in: PlayerSchema, card_service: CardService = Depends()):
    return await card_service.activate_card_api(player_in)
